#include <libdswextcam/dswextcamcenter.h>

CDswextcamcenter::CDswextcamcenter(LPST_ENV_T pEnv)
: CDswbase(pEnv)
{
	LOG4CPLUS_DEBUG(log_dsw, "Create CDswextcamcenter class!");
	m_pOnvifClient = new CDswonvif_client_ex(pEnv);
	m_pAXClient = new CDswax_client(pEnv);
}

CDswextcamcenter::~CDswextcamcenter()
{
	delete m_pAXClient;
	delete m_pOnvifClient;
	LOG4CPLUS_DEBUG(log_dsw, "Destroy CDswextcamcenter class!");
}

int CDswextcamcenter::OnMessage(EN_MSG_TYPE nMsgType, void* pParam)
{
	m_pOnvifClient->HandleMessage(nMsgType, pParam);
	m_pAXClient->HandleMessage(nMsgType, pParam);
	return 0;
}

